﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using Inspinia_MVC5.Models;

namespace Inspinia_MVC5.Data
{
    public class InitDatabase: DropCreateDatabaseIfModelChanges<BooksSystemContext>
    {
        protected override void Seed(BooksSystemContext context)
        {
            context.Departments.Add(new Department {DepartName="信工系",DepartDesc="学院工科大系" });
            context.Departments.Add(new Department { DepartName = "医护系", DepartDesc = "培养符合现代要求的医护人才" });
            base.Seed(context);
        }
    }
}